services.openssh.knownHosts.<name>.publicKeyFile
The path to the public key file for the host. The public
key file is read at build time and saved in the Nix store.
You can fetch a public key file from a running SSH server
with the ssh-keyscan command. The content
of the file should follow the same format as described for
the publicKey option. Only a single key
is supported. If a host has multiple keys, use
programs.ssh.knownHostsFiles instead.
- Type
null or absolute path- Default
null- Declared
- <nixpkgs/nixos/modules/programs/ssh.nix>